/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.jrcrm.entity.cms;

import net.dgg.dggcloud.service.entity.BaseEntity;
import net.dgg.dggcloud.service.entity.user.User;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: TypeCost
 * @Description: 月份类型渠道成本
 * @author 罗金
 * @date 2017年11月03日10:00:00
 *
 */
@Entity
@Table(name = "cms_type_cost")
public class TypeCost  implements Serializable {


	/**
	 * 序列 化号
	 */
	private static final long serialVersionUID = -540287793770056213L;

	@Id
	@Column(name = "id")
	private Long id;

	/**
	 * 创建时间
	 */
	@Column(name = "create_time")
	private Date createTime;
	/**
	 * 创建人ID
	 */
	@Column(name = "creater_id")
	private Long createrId;
	/**
	 * 创建人部门ID
	 */
	@Column(name = "creater_org_id")
	private Long createrOrgId;
	/**
	 * 创建人姓名
	 */
	@Column(name = "creater_name")
	private String createrName;

	/**
	 * 更新时间
	 */
	@Column(name = "update_time")
	private Date updateTime;
	/**
	 * 修改人ID
	 */
	@Column(name = "updater_id")
	private Long updaterId;
	/**
	 * 修改人姓名
	 */
	@Column(name = "updater_name")
	private String updaterName;
	/**
	 * 修改人部门ID
	 */
	@Column(name = "updater_org_id")
	private Long updaterOrgId;
	/**
	 * 成本月份
	 */
	@Column(name = "cost_month")
	private String costMonth;
	/**
	 * 业态CODE
	 */
	@Column(name = "type_code")
	private String typeCode;
	/**
	 * 地区代码
	 */
	@Column(name="place_code")
	private String placeCode;
	/**
	 * 表单
	 */
	@Column(name="form_price")
	private Integer formPrice;
	/**
	 * 非表单
	 */
	@Column(name="not_form_price")
	private Integer notFormPrice;
	/**
	 * 小顶上门表单
	 */
	@Column(name="xdsm_form_price")
	private Integer xdsmFormPrice;
	/**
	 * 小顶上门非表单
	 */
	@Column(name="xdsm_not_form_price")
	private Integer xdsmNotFormPrice;

	/**
	 * 设置创建人ID,创建人姓名,创建时间(当前)
	 *
	 * @param user 用户User
	 * @author: hanfeng
	 */
	public void setCreateUser(User user) {
		if (null != user) {
			this.createrId = user.getId();
			this.createrName = user.getName() + user.getLoginName();
			this.createrOrgId = user.getOrgId();
		}
		this.createTime = new Date();
	}

	/**
	 * 设置修改人ID,修改人姓名,修改时间(当前)
	 *
	 * @param user
	 * @author: hanfeng
	 */
	public void setUpdaterUser(User user) {
		if (null != user) {
			this.updateTime = new Date();
			this.updaterId = user.getId();
			this.updaterName = user.getName() + user.getLoginName();
			this.updaterOrgId = user.getOrgId();
		}
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getCreaterId() {
		return createrId;
	}

	public void setCreaterId(Long createrId) {
		this.createrId = createrId;
	}

	public Long getCreaterOrgId() {
		return createrOrgId;
	}

	public void setCreaterOrgId(Long createrOrgId) {
		this.createrOrgId = createrOrgId;
	}

	public String getCreaterName() {
		return createrName;
	}

	public void setCreaterName(String createrName) {
		this.createrName = createrName;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getUpdaterId() {
		return updaterId;
	}

	public void setUpdaterId(Long updaterId) {
		this.updaterId = updaterId;
	}

	public String getUpdaterName() {
		return updaterName;
	}

	public void setUpdaterName(String updaterName) {
		this.updaterName = updaterName;
	}

	public Long getUpdaterOrgId() {
		return updaterOrgId;
	}

	public void setUpdaterOrgId(Long updaterOrgId) {
		this.updaterOrgId = updaterOrgId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCostMonth() {
		return costMonth;
	}

	public void setCostMonth(String costMonth) {
		this.costMonth = costMonth;
	}

	public String getTypeCode() {
		return typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}

	public String getPlaceCode() {
		return placeCode;
	}

	public void setPlaceCode(String placeCode) {
		this.placeCode = placeCode;
	}

	public Integer getFormPrice() {
		return formPrice;
	}

	public void setFormPrice(Integer formPrice) {
		this.formPrice = formPrice;
	}

	public Integer getNotFormPrice() {
		return notFormPrice;
	}

	public void setNotFormPrice(Integer notFormPrice) {
		this.notFormPrice = notFormPrice;
	}

	public Integer getXdsmFormPrice() {
		return xdsmFormPrice;
	}

	public void setXdsmFormPrice(Integer xdsmFormPrice) {
		this.xdsmFormPrice = xdsmFormPrice;
	}

	public Integer getXdsmNotFormPrice() {
		return xdsmNotFormPrice;
	}

	public void setXdsmNotFormPrice(Integer xdsmNotFormPrice) {
		this.xdsmNotFormPrice = xdsmNotFormPrice;
	}



	public static long getSerialVersionUID() {
		return serialVersionUID;
	}
}
